package com.woniu.account.form;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

@Data
public class updateUserInformationForm {
    /**
     * 昵称
     */
//    @NotBlank(message = "昵称不能为空")
    @Length(max = 10, message = "昵称不能超过10个字符")
    private String userNickname;

    /**
     * 电话
     */
//    @NotBlank(message = "手机号不能为空")
    @Pattern(regexp = "^[1][3,4,5,6,7,8,9][0-9]{9}$", message = "手机号格式有误")
    private String userPhone;

    /**
     * 邮箱
     */
//    @NotBlank(message = "邮箱不能为空")
    @Email(message = "邮箱格式错误")
    private String userEmail;

    private String userImage;
    private String remark;

}
